Split-screen display method and electronic device

ABSTRACT

Embodiments of the present invention provide a split-screen display method and an electronic device. The method includes: An electronic device displays a display interface corresponding to a first task on a display when running a first application to execute the first task; receives, on the display interface corresponding to the first task, a first operation used to enable a second task; and enables a split-screen display mode in response to the first operation. Compared with that in the conventional technology, in the embodiments of the present invention, the split-screen mode can be triggered without an additional manual operation of a user. This achieves a technical effect of triggering, based on a task, an electronic device to enter a split-screen display mode, so that intelligence of the electronic device is improved.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No.201910938898.X, filed with the China National Intellectual PropertyAdministration on Sep. 30, 2019 and entitled “SPLIT-SCREEN DISPLAYMETHOD AND ELECTRONIC DEVICE”, which is incorporated herein by referencein its entirety.

TECHNICAL FIELD

This application relates to the field of terminal technologies, and inparticular, to a split-screen display method and an electronic device.

BACKGROUND

To improve visual experience, screens of various electronic devicesbecome larger. The electronic device provides a split-screen mode, tomeet a requirement of a user to simultaneously operate a plurality ofapplications. For example, the electronic device may simultaneouslydisplay windows of two applications.

In the conventional technology, an electronic device needs to bemanually triggered by a user to enter a split-screen mode. For example,when the electronic device displays a window of an application A in fullscreen, the user may touch and hold a historical task button to enablethe electronic device to enter the split-screen mode, and then the usermanually selects an application that needs to be displayed in asplit-screen window, for example, taps an icon of an application B. Inthis way, the application A and the application B are displayed indifferent windows.

It can be learned that, in the conventional technology, the electronicdevice needs to be manually triggered by the user to enter thesplit-screen mode, and an operation process is relatively cumbersome.This is not intelligent enough.

SUMMARY

Embodiments of the present invention provide a split-screen displaymethod and an electronic device, to achieve a technical effect oftriggering, based on a task, an electronic device to enable asplit-screen display mode, so as to improve intelligence of theelectronic device.

According to a first aspect, an embodiment of the present inventionprovides a split-screen display method, where the method includes:displaying a display interface corresponding to a first task on adisplay when a first application is run to execute the first task;receiving, on the display interface corresponding to the first task, afirst operation used to enable a second task; and enabling asplit-screen display mode in response to the first operation. To bespecific, when an electronic device runs the first application toexecute the first task, if the first operation used to enable the secondtask is received on the display interface corresponding to the firsttask, the electronic device may be triggered, by using the second task,to enter the split-screen display mode. Compared with that in theconventional technology, the split-screen mode can be triggered withoutan additional manual operation of a user. This achieves a technicaleffect of triggering, based on a task, an electronic device to performsplit-screen display, so that intelligence of the electronic device isimproved.

In a possible design, when running the first application to execute thefirst task, the electronic device may display the display interfacecorresponding to the first task on the display in full screen. In thisway, split-screen display can be performed based on a task in afull-screen display mode, and a full-screen mode can be switched to asplit-screen mode without an additional manual operation of a user, sothat intelligence of interaction is improved.

In a possible design, the second task may be a task in a secondapplication, and the second application is different from the firstapplication. In other words, the technical solutions in the embodimentsof the present invention may be applicable to a cross-applicationsplit-screen scenario, so that user experience is improved.

In another possible design, the second task may be a task in the firstapplication. In other words, the technical solutions in the embodimentsof the present invention may further be applicable to an in-applicationsplit-screen scenario. This can further improve intelligence ofsplit-screen display and improve user experience.

In a possible design, when the electronic device enables thesplit-screen display mode in response to the first operation, theelectronic device may specifically generate at least two display windowson the display, where the at least two display windows include a firstdisplay window and a second display window; display the displayinterface corresponding to the first task in the first display window;and display a display interface corresponding to the second task in thesecond display window. In other words, when the second task istriggered, the electronic device may directly enter the split-screenmode, and display the display interface of the second task in asplit-screen window. This improves interaction efficiency of theelectronic device.

In a possible design, when the electronic device enables thesplit-screen display mode in response to the first operation, theelectronic device may alternatively generate a view of a displayinterface corresponding to the second task, and display the view on thedisplay interface corresponding to the first task; determine a locationof a split-screen display window based on a second operation for theview in response to the second operation; display the split-screendisplay window at the location of the split-screen display window; anddisplay the display interface corresponding to the second task in thesplit-screen display window. In other words, after enabling of thesplit-screen mode is triggered based on the first operation (forenabling the second task), the display location of the split-screenwindow may be further determined based on the received second operation,that is, the user may indicate the display location of the split-screenwindow by performing the second operation. This can further improveinteraction intelligence of the electronic device and improve userexperience.

In a possible design, the second operation may include a plurality ofsub-operation steps, to avoid accidental triggering of split-screendisplay, so as to improve reliability of split-screen display.

For example, the second operation may include a first sub-operation, andthe first sub-operation may be an operation of dragging the view or acopy of the view to a preset location (for example, up, bottom, left, orright). Correspondingly, the electronic device displays the split-screendisplay window at the location of the split-screen display window afterdetermining that the preset location is the location of the split-screendisplay window and receiving the first sub-operation.

Further, the second operation may also include a second sub-operationbefore the first sub-operation, and the second sub-operation may be anoperation of touching and holding the view with a single finger ortouching and holding the view with two fingers. In other words, the usercan drag the view only after touching and holding the view with a singlefinger or touching and holding the view with two fingers. In this way,an accidental trigger of the user for dragging the view can be avoided,so that reliability of split-screen display is improved. Alternatively,if the user taps the view, the user may further cancel entering thesplit-screen mode, to restore full-screen display of the displayinterface of the first task.

Further, the second operation may also include a third sub-operationafter the first sub-operation, and the third sub-operation may be anoperation of tapping the view. Correspondingly, the electronic devicedisplays the display interface corresponding to the second task in thesplit-screen display window only after receiving the thirdsub-operation. In other words, after dragging the view to a specifiedsolution location, the user further needs to perform the operation oftapping the view to determine to display the display interface of thesecond task in the split-screen window. In this way, an accidentaltrigger of the user for dragging the view can be better avoided, so thatreliability of split-screen display is improved.

According to a second aspect, an embodiment of the present inventionprovides an electronic device, including a display; one or moreprocessors; a memory; a plurality of applications; and one or morecomputer programs, where the one or more computer programs are stored inthe memory, the one or more computer programs include instructions, andwhen the instructions are invoked and executed by the one or moreprocessors, the electronic device is enabled to perform the followingsteps: when running a first application to execute a first task,displaying a display interface corresponding to the first task on thedisplay; receiving, on the display interface corresponding to the firsttask, a first operation used to enable a second task; and enabling asplit-screen display mode in response to the first operation.

In a possible design, when the instructions are invoked and executed bythe one or more processors, the electronic device is enabled to performthe following step: displaying the display interface corresponding tothe first task on the display in full screen.

In a possible design, the second task is a task in the firstapplication; or the second task is a task in a second application, andthe second application is different from the first application.

In a possible design, when the instructions are invoked and executed bythe one or more processors, the electronic device is enabled to performthe following steps: generating at least two display windows on thedisplay, where the at least two display windows include a first displaywindow and a second display window; displaying the display interfacecorresponding to the first task in the first display window; anddisplaying a display interface corresponding to the second task in thesecond display window.

In a possible design, when the instructions are invoked and executed bythe one or more processors, the electronic device is enabled to performthe following steps: generating a view of a display interfacecorresponding to the second task, and displaying the view on the displayinterface corresponding to the first task; determining a location of asplit-screen display window based on a second operation for the view inresponse to the second operation; displaying the split-screen displaywindow at the location of the split-screen display window; anddisplaying the display interface corresponding to the second task in thesplit-screen display window.

In a possible design, the second operation includes a firstsub-operation, and the first sub-operation is an operation of draggingthe view or a copy of the view to a preset location; when theinstructions are invoked and executed by the one or more processors, theelectronic device is enabled to perform the following step: determiningthe preset location to be the location of the split-screen displaywindow; and when the instructions are invoked and executed by the one ormore processors, the electronic device is further enabled to perform thefollowing step: displaying the split-screen display window at thelocation of the split-screen display window after the firstsub-operation is received.

In a possible design, the second operation further includes a secondsub-operation before the first sub-operation, and the secondsub-operation is an operation of touching and holding the view with asingle finger or touching and holding the view with two fingers.

In a possible design, the second operation further includes a thirdsub-operation after the first sub-operation, and the third sub-operationis an operation of tapping the view; and when the instructions areinvoked and executed by the one or more processors, the electronicdevice is further enabled to perform the following step: displaying thedisplay interface corresponding to the second task in the split-screendisplay window after the third sub-operation is received.

According to a third aspect, an embodiment of the present inventionprovides an electronic device. The electronic device includesmodules/units for performing the method according to any one of thefirst aspect or the possible designs of the first aspect. Thesemodules/units may be implemented by hardware, or may be implemented byhardware executing corresponding software.

According to a fourth aspect, an embodiment of the present inventionprovides a computer storage medium including computer instructions. Whenthe computer instructions are run on an electronic device, theelectronic device is enabled to perform the split-screen display methodaccording to any one of the first aspect or the possible designs of thefirst aspect of the embodiments of the present invention.

According to a fifth aspect, an embodiment of the present inventionprovides a program product. When the program product runs on a computer,the computer is enabled to perform the split-screen display methodaccording to any one of the first aspect or the possible designs of thefirst aspect of the embodiments of the present invention.

According to a sixth aspect, an embodiment of the present inventionprovides a chip. The chip is coupled to a memory in an electronicdevice, and is configured to invoke a computer program stored in thememory and perform the technical solution according to any one of thefirst aspect and the possible designs of the first aspect of theembodiments of the present invention. In the embodiments of the presentinvention, “coupling” means a direct combination or an indirectcombination of two components.

According to a seventh aspect, an embodiment of the present inventionprovides a graphical user interface on an electronic device. Theelectronic device includes a display, one or more memories, and one ormore processors, where the one or more processors are configured toexecute one or more computer programs stored in the one or morememories; and the graphical user interface includes a graphical userinterface displayed when the electronic device performs the split-screendisplay method according to any one of the first aspect or the possibledesigns of the first aspect of the embodiments of the present invention.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1(A) to FIG. 1(D) are a schematic diagram of triggering anelectronic device to enter a split-screen mode in the conventionaltechnology;

FIG. 2 is a schematic diagram of a hardware structure of an electronicdevice according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of a software structure of an electronicdevice according to an embodiment of the present invention;

FIG. 4 is a flowchart of a split-screen display solution according to anembodiment of the present invention;

FIG. 5(A) and FIG. 5(B) are a schematic diagram of a split-screendisplay solution according to an embodiment of the present invention;

FIG. 6(A) and FIG. 6(B) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;

FIG. 7(A) and FIG. 7(B) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;

FIG. 8A(A) and FIG. 8A(B) are a schematic diagram of anothersplit-screen display solution according to an embodiment of the presentinvention;

FIG. 8B(A) and FIG. 8B(B) are a schematic diagram of anothersplit-screen display solution according to an embodiment of the presentinvention;

FIG. 9(A) and FIG. 9(B) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;

FIG. 10(A) to FIG. 10(C) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;

FIG. 11(A) and FIG. 11(B) are a schematic diagram of anothersplit-screen display solution according to an embodiment of the presentinvention;

FIG. 12(A) and FIG. 12(B) are a schematic diagram of anothersplit-screen display solution according to an embodiment of the presentinvention;

FIG. 13(A) to FIG. 13(F) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;

FIG. 14(A) to FIG. 14(F) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;

FIG. 15(A) to FIG. 15(D) are a schematic diagram of another split-screendisplay solution according to an embodiment of the present invention;and

FIG. 16 is a schematic diagram of a hardware structure of anotherelectronic device according to an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The following clearly and completely describes the technical solutionsin the embodiments of the present invention with reference to theaccompanying drawings according to the embodiments of the presentinvention.

Some terms in the present invention are first described, to help aperson skilled in the art have a better understanding.

(1) An application (application, app for short) in the embodiments ofthe present invention is briefly referred to as an app and is a softwareprogram that can implement one or more specific functions. Generally, aplurality of applications may be installed on a terminal device, forexample, an instant messaging application, a video application, an audioapplication, and an image shooting application. The instant messagingapplication may include, for example, Messages, WeChat (WeChat),WhatsApp Messenger, Line (Line), Instagram (Instagram), Kakao Talk, andDingTalk. The image shooting application may include, for example, acamera application (a system camera or a third-party cameraapplication). The video application may include, for example, YouTube,Twitter, TikTok, iQIYI, and Tencent Video. The audio application mayinclude, for example, Google Music, KuGou, EMUMO, and QQ Music. Theapplication mentioned in the following embodiments may be an applicationinstalled before delivery of the terminal device, or may be anapplication downloaded from a network or obtained from another terminaldevice by a user in a process of using the terminal device.

(2) Screen splitting in the embodiments of the present invention refersto a technology in which a software system divides a physical screeninto several display regions, so that a plurality of application pagescan be simultaneously displayed.

(3) A display window in the embodiments of the present invention is alsoreferred to as an “application window”, a “window”, and the like in thisspecification, and refers to a display region, and a display interfaceof an application is displayed in the display region. One applicationmay correspond to one application window. An application window may bereduced or enlarged, so that a display interface in the applicationwindow is reduced or enlarged.

A display of an electronic device may display only one window. When thedisplay displays only one window, the window may be displayed in fullscreen on the display, or may be displayed in non-full screen. This isnot limited in the embodiments of the present invention. In full-screendisplay, the window occupies an entire valid display region of thedisplay (or the window occupies a maximum display region that a systemallows a window to occupy). In non-full-screen display, the windowoccupies only a partial valid display region of the display (or adisplay region occupied by the window is smaller than a maximum displayregion that a system allows a window to occupy). For example, when amobile phone is in a one-hand operation mode, a display region occupiedby a window is smaller than a maximum display region that a systemallows a window to occupy.

Alternatively, a plurality of windows may be simultaneously displayed onthe display of the electronic device. For example, in a split-screenmode of the electronic device such as a mobile phone or a tabletcomputer, a display region of the display is divided into severaldisplay regions. One display region is one display window, and userinterfaces of different applications may be displayed in differentdisplay windows.

A split-screen window or a split-screen display window in theembodiments of the present invention refers to a new display interfacethat appears after a split-screen display mode is triggered. Forexample, the electronic device originally displays an application A infull screen, that is, the display has only one full-screen window fordisplaying the application A. After the electronic device is triggeredto enter a split-screen display mode, the display of the electronicdevice is divided into two display regions, and the application A and anapplication B are separately displayed. In this case, a display regioncorresponding to the application B is referred to as a split-screenwindow.

(4) In the embodiments of the present invention, “at least one” meansone or more, and “a plurality of” means two or more.

In addition, it should be understood that in the descriptions of thepresent invention, words such as “first” and “second” are merely usedfor a purpose of distinguishing description, and should not beunderstood as an indication or implication of relative importance, orshould not be understood as an indication or implication of a sequence.

Terms used in the following embodiments are merely intended to describespecific embodiments, but are not intended to limit the presentinvention. Terms “one”, “a”, “the”, “the foregoing”, “this”, and “theone” of singular forms used in this specification and the appendedclaims of the present invention are also intended to include forms like“one or more”, unless otherwise specified in the context clearly. Itshould be further understood that, in the embodiments of the presentinvention, “one or more” means one, two, or more, and the term “and/or”describes an association between associated objects, and indicates thatthree relationships may exist. For example, A and/or B may indicate thefollowing cases: Only A exists, both A and B exist, and only B exists,where A and B may be singular or plural. The character “/” usuallyindicates an “or” relationship between the associated objects.

Reference to “an embodiment”, “some embodiments”, or the like describedin this specification indicates that one or more embodiments of thepresent invention include a specific feature, structure, orcharacteristic described with reference to the embodiments. Therefore,statements such as “in an embodiment”, “in some embodiments”, “in someother embodiments”, and “in other embodiments” that appear at differentplaces in this specification do not necessarily mean referring to a sameembodiment, instead, they mean “one or more but not all of theembodiments”, unless otherwise specifically emphasized. The terms“include”, “contain”, “have”, and their variants all mean “including butnot limited to”, unless otherwise specifically emphasized.

The following describes the background of the present invention.

FIG. 1(A) to FIG. 1(D) show an example in which an electronic deviceenters a split-screen mode in the conventional technology. When browsing“Taobao”, if a user intends to share a commodity with a WeChat friend,as shown in FIG. 1(A), if the user copies an Amoy password of thecommodity and wants to send the Amoy password to the WeChat friend, butdoes not want to exit a current display interface, the user may manuallyenable a split-screen mode, and open a WeChat interface in asplit-screen window to perform a sharing operation.

For example, as shown in FIG. 1(B), the user may trigger, by touchingand holding a historical task button, the electronic device to enter thesplit-screen mode. A display status after the electronic device entersthe split-screen mode is shown in FIG. 1(C). A display screen is dividedfrom one display window into two display windows. Taobao is displayed inthe left window, and a home screen is displayed in the right window (thesplit-screen window). Then, the user selects “WeChat” on the homescreen, so that the WeChat interface is displayed in the right window.In this way, the user can use “WeChat” to chat with friends while using“Taobao” to browse commodities. However, as shown in FIG. 1(D), theprocess requires the user to manually perform a plurality of operationsto trigger the split-screen mode to display Taobao and WeChat interfacesseparately in two windows. This is cumbersome. In addition, anothermethod for enabling split-screen display is to enable the split-screendisplay by a gesture. For example, a screen may be divided into two byusing a knuckle to slide in the center of the screen. A display effectafter the gesture enabling is similar to that in FIG. 1(C). Then, theuser selects, in the split-screen window (home screen), an application(for example, WeChat) that needs to be displayed in split-screen. It canbe learned that the process of enabling the split-screen display byusing a gesture also requires the user to manually perform a pluralityof cumbersome operations, and further requires the user to bearrelatively high learning costs.

It can be learned from the foregoing descriptions that, in theconventional technology, the electronic device needs to be manuallytriggered by the user to enter the split-screen mode, and the operationprocess is relatively cumbersome. In addition, the split-screen mode inthe conventional technology can be performed only for cross applications(that is, two different applications), for example, the foregoing“Taobao” and “WeChat”, resulting in a specific function limitation.Therefore, the split-screen display solution in the conventionaltechnology is low-intelligent.

In view of this, the embodiments of the present invention provide asplit-screen display method and an electronic device. In a process ofrunning a first application to execute a first task, the electronicdevice displays a display interface (a first display interface) of thefirst task on a display, and when receiving an operation of enabling asecond task, directly enables a split-screen display mode and divides ascreen into a plurality of display windows. Then, the electronic devicedisplays the first display interface in a first display window, runs thesecond task, and displays a display interface (a second displayinterface) of the second task in a second display window. The secondtask may be another task in the first application, or may be a task inanother application such as a second application. This is not limitedherein. In this way, a technical effect of triggering, based on a task,the electronic device to enter the split-screen display mode, anddisplaying the interface of the second task in split screen can beimplemented. Compared with the conventional technology, this method doesnot require a user to manually trigger the split-screen mode. Therefore,interactive intelligence is improved. In addition, the first task andthe second task may be tasks of two different applications (that is,cross-application screen splitting is performed), or the first task andthe second task may be tasks in a same application. Therefore, thissolution may further implement a technical effect of in-applicationscreen splitting. Intelligence of split-screen display can be furtherimproved, to improve user experience. A specific technical solution isdescribed in detail hereinafter.

The embodiments of the present invention may be applied to anyelectronic device that has a display. For example, the electronic devicemay be a portable electronic device such as a mobile phone, a foldablemobile phone, or a tablet computer, or may be a non-portable electronicdevice such as a desktop computer or a television, or may be a wearableelectronic device such as a smart band, a watch, or a wearable devicehelmet, or may be an in-vehicle device or a smart home device (forexample, a television). This is not limited in the embodiments of thepresent invention.

An electronic device, a graphical user interface (graphical userinterface, GUI) for such an electronic device, and an embodiment forusing such an electronic device are described below. In the followingembodiments, an example in which the electronic device is a mobile phoneis used. FIG. 2 is a schematic diagram of a structure of the mobilephone. As shown in FIG. 2, the mobile phone 100 may include a processor110, an external memory interface 120, an internal memory 121, auniversal serial bus (universal serial bus, USB) interface 130, acharging management module 140, a power management module 141, a battery142, an antenna 1, an antenna 2, a mobile communications module 150, awireless communications module 160, an audio module 170, a speaker 170A,a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module180, a button 190, a motor 191, an indicator 192, a camera 193, adisplay 194, a subscriber identification module (subscriberidentification module, SIM) card interface 195, and the like. The sensormodule 180 may include a pressure sensor 180A, a gyro sensor 180B, abarometric pressure sensor 180C, a magnetic sensor 180D, an accelerationsensor 180E, a distance sensor 180F, an optical proximity sensor 180G, afingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K,an ambient light sensor 180L, a bone conduction sensor 180M, and thelike.

The processor 110 may include one or more processing units. For example,the processor 110 may include an application processor (applicationprocessor, AP), a modem processor, a graphics processing unit (graphicsprocessing unit, GPU), an image signal processor (image signalprocessor, ISP), a controller, a memory, a video codec, a digital signalprocessor (digital signal processor, DSP), a baseband processor, aneural-network processing unit (neural-network processing unit, NPU),and/or the like. Different processing units may be independent devices,or may be integrated into one or more processors. The controller may bea nerve center and a command center of the mobile phone 100. Thecontroller may generate an operation control signal based on instructionoperation code and a time sequence signal, to complete control ofinstruction fetching and instruction execution. A memory may be furtherdisposed in the processor 110, and is configured to store instructionsand data. In some embodiments, the memory in the processor 110 is acache. The memory may store instructions or data just used or cyclicallyused by the processor 110. If the processor 110 needs to use theinstructions or the data again, the processor 110 may directly invokethe instructions or the data from the memory. This avoids repeatedaccess and reduces a waiting time of the processor 110, so that systemefficiency is improved. Execution of the split-screen display methodaccording to the embodiments of the present invention may be controlledby the processor 110 or completed by invoking another component, forexample, invoking a processing program in the embodiments of the presentinvention that is stored in the internal memory 121, or invoking,through the external memory interface 120, a processing program in theembodiments of the present invention that is stored in a third-partydevice, to control the display 194 to perform a split-screen displayoperation.

The external memory interface 120 may be configured to connect to anexternal storage card such as a micro SD card, to extend a storagecapability of the mobile phone 100. The external storage cardcommunicates with the processor 110 through the external memoryinterface 120, to implement a data storage function. For example, a filesuch as an image or a video is stored in the external storage card.

The internal memory 121 may be configured to store computer-executableprogram code. The executable program code includes instructions. Theprocessor 110 runs the instructions stored in the internal memory 121,to perform various function applications and data processing of themobile phone 100. The internal memory 121 may include a program storagearea and a data storage area. The program storage area may store anoperating system, software code of at least one application (forexample, iQIYI or WeChat), and the like. The data storage area may storedata (for example, an image and a video) and the like generated in aprocess of using the mobile phone 100. In addition, the internal memory121 may include a high-speed random access memory, or may include anonvolatile memory, for example, at least one magnetic disk storagedevice, a flash memory, or a universal flash storage (universal flashstorage, UFS). The internal memory 121 may be configured to storecomputer-executable program code of the split-screen display methodaccording to the embodiments of the present invention. The executableprogram code includes instructions. The processor 110 may run thecomputer-executable program code of the split-screen display method thatis stored in the internal memory 121, to enable the mobile phone 100 tocomplete the split-screen display method provided in the embodiments ofthe present invention.

The USB interface 130 is an interface that conforms to a USB standardspecification, and may be specifically a mini USB interface, a micro USBinterface, a USB Type-C interface, or the like. The USB interface 130may be configured to connect to a charger to charge the mobile phone100, or may be configured to transmit data between the mobile phone 100and a peripheral device. The charging management module 140 isconfigured to receive charging input from the charger. The powermanagement module 141 is configured to connect to the battery 142, thecharging management module 140, and the processor 110. The powermanagement module 141 receives input from the battery 142 and/or thecharging management module 140, and supplies power to the processor 110,the internal memory 121, an external memory, the display 194, the camera193, the wireless communications module 160, and the like.

A wireless communication function of the mobile phone 100 may beimplemented through the antenna 1, the antenna 2, the mobilecommunications module 150, the wireless communications module 160, themodem processor, the baseband processor, and the like. The antenna 1 andthe antenna 2 are configured to transmit and receive electromagneticwave signals. Each antenna in the mobile phone 100 may be configured tocover one or more communication frequency bands. Different antennas maybe multiplexed to improve antenna utilization. For example, the antenna1 may be multiplexed as a diversity antenna in a wireless local areanetwork. In some other embodiments, the antenna may be used incombination with a tuning switch.

The mobile communications module 150 may provide a wirelesscommunication solution that includes 2G/3G/4G/5G or the like and that isapplied to the mobile phone 100. The mobile communications module 150may include at least one filter, a switch, a power amplifier, a lownoise amplifier (low noise amplifier, LNA), and the like. The mobilecommunications module 150 may receive an electromagnetic wave throughthe antenna 1, perform processing such as filtering and amplification onthe received electromagnetic wave, and transmit a processedelectromagnetic wave to the modem processor for demodulation. The mobilecommunications module 150 may further amplify a signal modulated by themodem processor, and convert the signal into an electromagnetic wave forradiation through the antenna 1. In some embodiments, at least somefunction modules of the mobile communications module 150 may be disposedin the processor 110. In some embodiments, at least some functionmodules of the mobile communications module 150 and at least somemodules of the processor 110 may be disposed in a same device.

The wireless communications module 160 may provide a wirelesscommunication solution that includes a wireless local area network(wireless local area networks, WLAN) (for example, a wireless fidelity(wireless fidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), a globalnavigation satellite system (global navigation satellite system, GNSS),frequency modulation (frequency modulation, FM), a near fieldcommunication (near field communication, NFC) technology, an infrared(infrared, IR) technology, or the like and that is applied to the mobilephone 100. The wireless communications module 160 may be one or morecomponents integrating at least one communications processing module.The wireless communications module 160 receives an electromagnetic wavethrough the antenna 2, performs frequency modulation and filteringprocessing on an electromagnetic wave signal, and sends a processedsignal to the processor 110. The wireless communications module 160 mayfurther receive a to-be-sent signal from the processor 110, performfrequency modulation and amplification on the signal, and convert thesignal into an electromagnetic wave for radiation through the antenna 2.

In some embodiments, the antenna 1 and the mobile communications module150 of the mobile phone 100 are coupled, and the antenna 2 and thewireless communications module 160 of the mobile phone 100 are coupled,so that the mobile phone 100 can communicate with a network and anotherdevice by using a wireless communications technology. The wirelesscommunications technology may include a global system for mobilecommunications (global system for mobile communications, GSM), a generalpacket radio service (general packet radio service, GPRS), code divisionmultiple access (code division multiple access, CDMA), wideband codedivision multiple access (wideband code division multiple access,WCDMA), time-division code division multiple access (time-division codedivision multiple access, TD-SCDMA), long term evolution (long termevolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/orthe like. The GNSS may include a global positioning system (globalpositioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a BeiDou navigation satellitesystem (beidou navigation satellite system, BDS), a quasi-zenithsatellite system (quasi-zenith satellite system, QZSS), and/or asatellite based augmentation system (satellite based augmentationsystems, SBAS).

The display 194 may be configured to display information entered by auser, information provided for the user, and various menus of the mobilephone 100, and may further receive user input, for example, a touchoperation performed by the user, and display a display interface of anapplication, and the like. The display 194 includes a display panel. Thedisplay panel may be a liquid crystal display (liquid crystal display,LCD), an organic light-emitting diode (organic light-emitting diode,OLED), an active-matrix organic light emitting diode (active-matrixorganic light emitting diode, AMOLED), a flexible light-emitting diode(flex light-emitting diode, FLED), a mini LED, a micro LED, a microOLED, a quantum dot light emitting diode (quantum dot light emittingdiodes, QLED), or the like.

The display 194 may alternatively include a display panel and a touchpanel. The display panel may be configured in a form of a liquid crystaldisplay (liquid crystal display, LCD), an organic light-emitting diode(organic light-emitting diode, OLED), or the like. The touch panel, alsoreferred to as a touchscreen, a touch-sensitive screen, or the like, maycollect a contact operation or a non-contact operation performed by theuser on or near the touch panel (for example, an operation performed bythe user on the touch panel or near the touch panel by using anysuitable object or accessory such as a finger or a stylus, or a motionsensing operation, where the operation includes operation types such asa single-point control operation and a multi-point control operation),and drive a corresponding connection apparatus based on a presetprogram.

Optionally, the touch panel may include two parts: a touch detectionapparatus and a touch controller. The touch detection apparatus detectsa touch location and a gesture of the user, detects a signal brought byan input operation, and sends the signal to the touch controller. Thetouch controller receives touch information from the touch detectionapparatus, converts the touch information into information that can beprocessed by the processor, then sends the information to the processor110, and can receive and execute a command sent by the processor 110. Inaddition, the touch panel may be implemented by using a plurality oftypes such as a resistive type, a capacitive type, an infrared ray type,and a surface acoustic wave type, or the touch panel may be implementedby using any technology developed in the future. Further, the touchpanel may cover the display panel. The user may perform, based oncontent displayed on the display panel (the displayed content includesbut is not limited to a soft keyboard, a virtual mouse, a virtualbutton, an icon, and the like), an operation on or near the touch panelthat covers the display panel. After detecting the operation performedon or near the touch panel, the touch panel sends the operation to theprocessor 110 to determine the user input, and then the processor 110provides corresponding visual output on the display panel based on theuser input.

For example, in the embodiments of the present invention, afterdetecting a touch operation entered by the user, the touch detectionapparatus in the touch panel sends a signal corresponding to thedetected touch operation to the touch controller in real time, and thetouch controller converts the signal into touch point coordinates andsends the touch point coordinates to the processor 110. The processor110 determines, based on the received touch point coordinates, that thetouch operation is specifically an operation of enabling a second task,then responds to the touch operation entered by the user, enables asplit-screen mode, divides a display region of the display 194 into aplurality of display windows (for example, a first display window and asecond display window), enables the second task, displays the secondtask in the second display window, and switches a first task previouslydisplayed in full screen to be displayed in the first display window. Aspecific implementation of this solution is described in detailhereinafter.

In some embodiments, the mobile phone 100 may include one or N displays194. The one or N displays 194 may be connected in a folded or flexiblemanner. When a plurality of displays 194 are folded, the electronicdevice is portable, and when the plurality of displays 194 are connectedin an unfolded manner, the user can use a large screen for watching.This improves user experience. N is a positive integer greater than 1.When the electronic device includes a plurality of displays, thesplit-screen display method according to the embodiments of the presentinvention may be separately applied to one display, or may be applied toan entire large screen formed when the plurality of displays areconnected in an unfolded manner.

The camera 193 is configured to capture a static image or a video. Thecamera 193 may include a front-facing camera and a rear-facing camera.

The mobile phone 100 may implement audio functions such as music playingor recording by using the audio module 170, the speaker 170A, thereceiver 170B, the microphone 170C, the headset jack 170D, theapplication processor, and the like.

The pressure sensor 180A is configured to sense a pressure signal, andcan convert the pressure signal into an electrical signal. In someembodiments, the pressure sensor 180A may be disposed on the display194. The gyro sensor 180B may be configured to determine a motionposture of the mobile phone 100. In some embodiments, the gyro sensor180B may be used to determine angular velocities of the mobile phone 100around three axes (namely, axes x, y, and z).

The gyro sensor 180B may be configured to perform image stabilizationduring photographing. The barometric pressure sensor 180C is configuredto measure barometric pressure. In some embodiments, the mobile phone100 calculates an altitude based on a barometric pressure value measuredby the barometric pressure sensor 180C, to assist in positioning andnavigation. The magnetic sensor 180D includes a Hall effect sensor. Themobile phone 100 may detect opening and closing of a flip cover by usingthe magnetic sensor 180D. In some embodiments, when the mobile phone 100is a flip phone, the mobile phone 100 can detect opening and closing ofa flip cover based on the magnetic sensor 180D. Further, a feature suchas automatic unlocking upon opening of the flip cover is set based on adetected opening or closing state of the flip cover. The accelerationsensor 180E may detect magnitude of acceleration of the mobile phone 100in various directions (usually on three axes). When the mobile phone 100is static, a value and a direction of gravity may be detected. Theacceleration sensor 180E may further be configured to recognize aposture of the electronic device, and is applied to an application suchas a pedometer or switching between a landscape mode and a portraitmode.

The distance sensor 180F is configured to measure a distance. The mobilephone 100 may measure a distance in an infrared manner or a lasermanner. In some embodiments, in a photographing scenario, the mobilephone 100 may measure a distance by using the distance sensor 180F, toimplement quick focusing. The optical proximity sensor 180G may include,for example, a light-emitting diode (LED) and an optical detector suchas a photodiode. The light-emitting diode may be an infraredlight-emitting diode. The mobile phone 100 may emit infrared light byusing the light-emitting diode. The mobile phone 100 detects reflectedinfrared light from a nearby object by using the photodiode. Whensufficient reflected light is detected, it may be determined that thereis an object near the mobile phone 100. When insufficient reflectedlight is detected, the mobile phone 100 may determine that there is noobject near the mobile phone 100. The mobile phone 100 may detect, byusing the optical proximity sensor 180G, that the user holds the mobilephone 100 close to an ear for a call, to automatically turn off a screenfor power saving. The optical proximity sensor 180G may also be used ina flip cover mode or a pocket mode to automatically unlock or lock thescreen.

The ambient light sensor 180L is configured to sense ambient lightbrightness. The mobile phone 100 may adaptively adjust brightness of thedisplay 194 based on the sensed ambient light brightness. The ambientlight sensor 180L may also be configured to automatically adjust whitebalance during photographing. The ambient light sensor 180L may furthercooperate with the optical proximity sensor 180G to detect whether themobile phone 100 is in a pocket, to prevent an accidental touch. Thefingerprint sensor 180H is configured to collect a fingerprint. Themobile phone 100 may use a feature of the collected fingerprint toimplement fingerprint-based unlocking, application lock access,fingerprint-based photographing, fingerprint-based call answering, andthe like.

The temperature sensor 180J is configured to detect a temperature. Insome embodiments, the mobile phone 100 executes a temperature processingpolicy based on the temperature detected by the temperature sensor 180J.For example, when the temperature reported by the temperature sensor180J exceeds a threshold, the mobile phone 100 lowers performance of aprocessor near the temperature sensor 180J, to reduce power consumptionand implement thermal protection. In some other embodiments, when thetemperature is less than another threshold, the mobile phone 100 heatsthe battery 142, to avoid an abnormal shutdown of the mobile phone 100caused by a low temperature. In some other embodiments, when thetemperature is less than still another threshold, the mobile phone 100boosts an output voltage of the battery 142, to avoid an abnormalshutdown caused by a low temperature.

The touch sensor 180K is also referred to as a “touch panel”. The touchsensor 180K may be disposed on the display 194, and the touch sensor180K and the display 194 form a touchscreen, which is also referred toas a “touch screen”. The touch sensor 180K is configured to detect atouch operation performed on or near the touch sensor 180K. The touchsensor may transfer the detected touch operation to the applicationprocessor, to determine a type of a touch event. A visual output relatedto the touch operation may be provided on the display 194. In some otherembodiments, the touch sensor 180K may alternatively be disposed on asurface of the mobile phone 100, and is located in a position differentfrom that of the display 194.

The bone conduction sensor 180M may obtain a vibration signal. In someembodiments, the bone conduction sensor 180M may obtain a vibrationsignal of a vibration bone of a human vocal part. The bone conductionsensor 180M may also be in contact with a human pulse to receive a bloodpressure beating signal.

The button 190 includes a power button, a volume button, and the like.The button 190 may be a mechanical button, or may be a touch button. Themobile phone 100 may receive button input, and generate button signalinput related to a user setting and function control of the mobile phone100. The motor 191 may generate a vibration prompt. The motor 191 may beconfigured to provide an incoming call vibration prompt or a touchvibration feedback. For example, touch operations performed on differentapplications (for example, photographing and audio playing) maycorrespond to different vibration feedback effects. The indicator 192may be an indicator light, and may be configured to indicate a chargingstatus and a power change, or may be configured to indicate a message, amissed call, a notification, and the like. The SIM card interface 195 isconfigured to connect to a SIM card. The SIM card may be inserted intothe SIM card interface 195 or plugged from the SIM card interface 195,to implement contact with or separation from the mobile phone 100.

It may be understood that the components shown in FIG. 2 do notconstitute a specific limitation on the mobile phone. The mobile phonemay include more or fewer components than those shown in the figure, orcombine some components, or split some components, or have differentcomponent arrangements. In the following embodiments, the mobile phone100 shown in FIG. 2 is used as an example for description.

It may be understood that the schematic structure according to theembodiments of the present invention does not constitute a specificlimitation on the mobile phone 100. In some other embodiments of thepresent invention, the mobile phone 100 may include more or fewercomponents than those shown in the figure, or combine some components,or split some components, or have different component arrangements. Thecomponents shown in the figure may be implemented by hardware, software,or a combination of software and hardware.

The foregoing describes a hardware structure of the mobile phone 100,and the following describes a software architecture of the mobile phone100.

Specifically, a software system of the mobile phone 100 may use alayered architecture, an event-driven architecture, a microkernelarchitecture, a microservice architecture, or a cloud architecture. Inan embodiment of the present invention, an Android (android) system witha layered architecture is used as an example to describe a softwarestructure of the mobile phone 100. In the layered architecture, softwareis divided into several layers, and each layer has a clear role andtask. The layers communicate with each other through a softwareinterface.

As shown in FIG. 3, in some possible embodiments, the Android system isdivided into four layers from top to bottom: an application(Applications) layer (“application layer” for short in thisspecification), an application framework (Application Framework) layer(“framework layer” for short in this specification), an Android runtime(Android runtime) and system library layer (“system runtime and librarylayer” for short in this specification), and a kernel layer.

At least one application is run at the application layer, and theapplication may be a window (Window) application, a system settingapplication, a contact application, a messaging application, a clockapplication, a camera application, or the like that is provided in theoperating system; or may be an application developed by a third-partydeveloper, for example, an instant messaging application, a photobeautification application, or a game application. Certainly, duringspecific implementation, an application package at the application layeris not limited to the foregoing examples, and may actually includeanother application package. This is not limited in the embodiments ofthe present invention.

As shown in FIG. 3, in the embodiments of the present invention, a viewtree (ViewTree) at the application layer is a view structure in anapplication interface. Generally, one display interface in anapplication may correspond to one ViewTree. In implementation of thepresent invention, a developer may mark, in a ViewTree corresponding toa display interface of an application, a view (View) control (forexample, a button (Button) or an image control (ImageView)) thatimplements screen splitting in response to dragging. For example, asshown in FIG. 13(A) to FIG. 13(F), a WeChat interface view that may bedragged is a marked view control. A system user interface (system userinterface, SystemUI) is a system-level UI component, and hassystem-level global permission. The SystemUI includes a drag starter(DragStarter), and the DragStarter is configured to process responselogic of a user drag gesture and determine a location (up, bottom, left,or right) in which a new split-screen window is to be enabled.

The framework layer provides an application programming interface(application programming interface, API) and a programming framework foran application at the application layer. The application framework layerincludes some predefined functions. The application framework layer actsas a processing center that determines an action to be performed by theapplication at the application layer. In the embodiments of the presentinvention, an open API may be added to the framework layer for anupper-layer application to invoke. For example, a functionsetLaunchSplitScreenLocation (int location) is added to an originalactivity option ActivityOption (a parameter) of a unified split-screenwindow control center, where the parameter location is a location atwhich screen splitting is to be enabled, and supports four locations:left-LEFT, right-RIGHT, up-UP, and bottom-BOTTOM. When the applicationenables a new activity, for example, enables the second task (openingWeChat) described in this specification, the application invokes a startactivity startActivity (a function), and generates a bundle (Bundle) byusing the ActivityOption for transmission, so that the application canactively trigger split-screen display.

As shown in FIG. 3, the application framework layer in the embodimentsof the present invention includes an activity manager service (activitymanager service, AMS) module, a window manager service (window managerservice, WMS) module, a unified split-screen window control center(MultiWinSupervisor), and an input manager service (InputManagerService,IMS) module, and the like.

The input manager service module is used for input monitoring andprocessing of a touch event.

The unified split-screen window control center is used to: coordinatescheduling of split-screen windows, respond to invoking instructionsfrom the application layer for an upper layer, and deliver invokinginstructions of system services (such as AMS and WMS) to a lower layer.For example, when it is detected that a marked view control is dragged,related instructions for performing screen splitting are triggered forthe AMS, the WMS, and the like, so as to implement passive triggering ofscreen splitting. For another example, when an application at the upperlayer actively invokes the ActivityOption interface, relatedinstructions for performing screen splitting are triggered for the AMS,the WMS, and the like, so as to implement active triggering of screensplitting. The activity manager service module is used to: manage a lifecycle of each application and a common navigation rollback function suchas controlling exit, opening, and back of the application.

The window manager service module is used to manage and draw all windowinterfaces, for example, control a display size, a location, and a levelof a window.

Certainly, during specific implementation, the framework layer mayfurther include a function service such as content provision, callmanagement, resource management, and notification management. This isnot limited in the embodiments of the present invention.

The system runtime library layer provides support for the upper layer,that is, the framework layer. When the framework layer is used, theAndroid operating system runs a C/C++ library included in the systemruntime library layer, to implement a function that needs to beimplemented by the framework layer.

The kernel layer is a layer between hardware and software. As shown inFIG. 3, the kernel layer includes at least a touchscreen driver.Certainly, during specific implementation, the kernel layer may furtherinclude another driver such as a camera driver and an audio driver. Thisis not limited in the embodiments of the present invention.

It should be understood that the software programs and/or modulescorresponding to the software architecture in FIG. 3 are stored in theinternal memory 121 of the mobile phone 100 shown in FIG. 2.

The following describes in detail the solutions provided in theembodiments of the present invention by using an example in which theembodiments of the present invention are applied to the foregoing mobilephone 100.

As shown in FIG. 4, a split-screen display method provided in anembodiment of the present invention includes the following steps:

S401. In a process of running a first application to execute a firsttask, a mobile phone displays a display interface of the first task on adisplay, and receives a first operation for enabling a second task,where a display interface corresponding to the second task is differentfrom the display interface corresponding to the first task.

S402. In response to the first operation, the mobile phone enables asplit-screen display mode, divides a screen into a plurality of displaywindows, displays the display interface corresponding to the first taskin a first display window, enables the second task, and displays thedisplay interface corresponding to the second task in a second displaywindow.

In the embodiments of the present invention, before the mobile phonereceives the first operation, the display may display the displayinterface corresponding to the first task (also referred to as a firstdisplay interface in this specification) in full screen. For example, asshown in FIG. 5(A), the first task is running and displaying a commoditybrowsing interface of Taobao.

The first operation may be an input operation performed by a user, and atype of the input operation may be touch input, input, motion sensinginput, floating input, or the like. This is not limited herein.

The second task may be an associated task triggered in a process ofperforming a task by the first application, for example, a WeChatsharing task triggered in Taobao, or may be a task separately triggeredby the user. For example, the user enters a voice instruction “openWeChat” when browsing Taobao. This is not limited in the embodiments ofthe present invention. The following is mainly described in detail byusing an example in which the second task is an associated tasktriggered in a process of performing a task by the first application.

For example, as shown in FIG. 3, when the display displays the displayinterface of the first task in full screen, if a touch panel in thedisplay detects a signal brought by a touch operation entered by a user,a sensor converts the detected signal into information that can beprocessed by a processor, and transfers the information to theprocessor. A kernel layer running in the processor generates, based onthe information, location data (the location data may specificallyinclude touch point coordinates, a timestamp corresponding to the touchpoint coordinates, and the like) corresponding to the operation. Thekernel layer uploads the collected finger location data to a frameworklayer, and an IMS at the framework layer determines that the firstoperation performed by the user (for example, as shown in FIG. 5(A), theoperation performed by the user is an operation of tapping a control“paste the Amoy password to WeChat”) is intended to enable the secondtask (that is, enable WeChat). The IMS reports, to an application (thatis, Taobao) at the application layer, an event of enabling the secondtask. In this case, when responding to the user operation and enablingthe task of opening WeChat, the application may further actively invokean API interface at the framework layer, to trigger a unifiedsplit-screen window control center to deliver related instructions to anAMS, a WMS, and the like, to enable a system to enter the split-screenmode, and to open the display interface of the second task in asplit-screen window. In this way, an effect that an application activelytriggers split-screen display based on a task can be implemented.

In some possible designs, there may be two windows obtained throughdivision. For example, as shown in FIG. 5(B), the display is dividedinto two display windows arranged on the left and right. The left is thefirst display window, used to display the display interface (a commoditybrowsing page of Taobao) corresponding to the first task. The right isthe second display window, used to display the display interface (aWeChat page) corresponding to the second task. Certainly, duringspecific implementation, locations of the first display window and thesecond display window may be exchanged. For example, the left is thesecond display window, used to display the display interfacecorresponding to the second task, and the right is the first displaywindow, used to display the display interface corresponding to the firsttask. It should be understood that a Taobao interface and a WeChatinterface in the accompanying drawings are merely used to give anexample for the first task and the second task. During specificimplementation, the first task and the second task may alternatively betasks in other applications.

It should be noted that, other than the left-right arrangement shown inFIG. 5(A) and FIG. 5(B), a location relationship between the firstdisplay window and the second display window may alternatively beup-bottom arrangement. For example, as shown in FIG. 6(A) and FIG. 6(B),the display is divided into two windows arranged at the top and bottom,the first display window is at the top, and the second display window isat the bottom. Certainly, locations of the first display window and thesecond display window in FIG. 6(A) and FIG. 6(B) may also be exchanged.

In the embodiments of the present invention, shapes and sizes of thefirst display window and the second display window may be the same, forexample, as shown in FIG. 5(A) and FIG. 5(B) and FIG. 6(A) and FIG.6(B). Certainly, shapes and sizes of the first display window and thesecond display window may alternatively be different. For example, asshown in FIG. 7(A) and FIG. 7(B), the second display window is smallerthan the first display window. In this case, the user can moreconveniently view and use the first display interface in the firstdisplay window.

In an optional implementation, the user may preset, in the system, alocation relationship and a size relationship between the first displaywindow and the second display window that are to be used after themobile phone enters the split-screen mode.

In some possible designs, there may be more than two windows obtainedthrough division. For example, as shown in FIG. 8A(A) and FIG. 8A(B),the display is divided into three display windows, and a third displaywindow is used to display a home screen of the system. In this way, theuser may further monitor and operate the home screen. Certainly, thethird display window may alternatively be an interface for displayinganother application. For example, as shown in FIG. 8B(A) and FIG. 8B(B),an interface of the video app “iQIYI” is displayed in the third displaywindow. In this way, the user can simultaneously use “iQIYI”, “Taobao”,and “WeChat”. It should be understood that, in the embodiments of thepresent invention, a location relationship among the first displaywindow, the second display window, and the third display window mayalternatively be implemented in another arrangement. For example, thefirst display window, the second display window, and the third displaywindow may be in a top-bottom arrangement, or in another arrangement.This is not limited herein. Shapes or sizes of the first display window,the second display window, and the third display window may be the sameor may be different. This is not limited herein.

In some possible designs, the second task and the first task may betasks in different applications. This is a scenario of cross-applicationsplit-screen display. For example, in the embodiments shown in FIG. 5(A)and FIG. 5(B) to FIG. 8B(A) and FIG. 8B(B), the applicationcorresponding to the first task is Taobao, and an applicationcorresponding to the second task is WeChat. In some other possibledesigns, the first task and the second task may be tasks in a sameapplication. This is a scenario of in-application split-screen display.

For example, as shown in FIG. 9(A), when browsing commodities by usingTaobao, if the user intends to chat with a customer service, the usertaps a “customer service” icon at the bottom of a commodity browsingpage (the first operation). After detecting the operation, the mobilephone directly enables a split-screen mode. The display is divided intoa plurality of display windows, the commodity browsing page is displayedin a first display window, a customer service task is also enabled andrun, and a customer service page is displayed in a second displaywindow. In this way, the user can chat with the customer service whilebrowsing commodities.

In an optional implementation, a split-screen enabling function may beadded to the first application. For example, a menu option forsplit-screen display is added to a control used to trigger the secondtask, and then a function for triggering the second task is bound to afunction for triggering a split-screen mode. In this way, when the usertaps the menu option for split-screen display, both a trigger for thesplit-screen display mode and a trigger for the second task may beimplemented. For example, as shown in FIG. 10(A) to FIG. 10(C), thefirst application is WeChat, and a first interface is a WeChat chatmanagement interface. An option “open a split-screen window” may beadded to a shortcut menu of any chat object. In this case, afterbringing up a corresponding shortcut menu by touching and holding a chatobject, the user can trigger, by tapping the option “open a split-screenwindow” (the first operation), the mobile phone to enter a split-screendisplay mode, and a chat interface with the chat object is displayed inthe split-screen window. In this way, a prompt that split-screen displaycan be performed may be provided for the user, to further improve userexperience.

In an optional implementation, before the mobile phone receives thefirst operation, the display may alternatively display the displayinterface corresponding to the first task in a non-full-screen manner.For example, if two or more display windows have been displayed on thedisplay in the split-screen mode, after the mobile phone receives thefirst operation, in a possible design, the mobile phone may furtherdivide a display region that is corresponding to the first task beforethe mobile phone receives the first operation, and then further displaythe interface of the first task and the interface of the second task ina split-screen manner in the display region. For example, as shown inFIG. 11(A), the display of the mobile phone is divided into a fourthdisplay window and a fifth display window, where a home screen isdisplayed in the fourth display window, and a Taobao interface isdisplayed in the fifth display window. After the user taps “paste to aWeChat friend” (the first operation) in the fifth display window, themobile phone further divides a region in which the fifth display windowis located into the first display window and the second display window,and then displays a WeChat interface in the second display window. In anoptional implementation, during specific implementation, the mobilephone may further adjust the fourth display window, for example,adaptively adjust a size or a location of the fourth display window.

In an alternative design, before the mobile phone receives the firstoperation, if the mobile phone is already in the split-screen mode, thatis, two or more display windows are displayed, after receiving the firstoperation, the mobile phone may display the display interface of thesecond task in another display window other than a display windowcorresponding to the first task, or re-divide the entire display. Forexample, as shown in FIG. 12(A) and FIG. 12(B), the display of themobile phone is divided into a fourth display window and a fifth displaywindow, where a home screen is displayed in the fourth display window,and a Taobao interface is displayed in the fifth display window. Afterthe user taps “paste to a WeChat friend” (the first operation) in thefifth display window, the mobile phone replaces the home screendisplayed in the fourth display window with the display interfacecorresponding to the second task, that is, a WeChat interface (in otherwords, the fourth display window is replaced with the second displaywindow, where the second display window is a window for displaying theWeChat interface). In an optional implementation, during specificimplementation, after replacing the home screen displayed in the fourthdisplay window with the display interface corresponding to the secondtask, that is, the WeChat interface, the mobile phone may further adjustthe fourth display window and the fifth display window, for example,adaptively adjust sizes or locations of the fourth display window andthe fifth display window.

To further improve user experience, an embodiment of the presentinvention further provides solutions in which a user controls a displaylocation of a split-screen window. Specifically, after receiving thefirst operation and enabling the split-screen display mode, the mobilephone first pops up a view (for example, a thumbnail of a second displayinterface) associated with the second task on the first displayinterface. In this case, the user may perform a drag operation on theview, to move the view on the screen to the top/bottom/left/right of thescreen, and determine a location of a split-screen window (the seconddisplay window) based on a direction in which the view moves.

For example, the touch panel in the display detects a signal brought bya touch operation entered by the user. The sensor converts the detectedsignal into information that can be processed by the processor, andtransfers the information to the processor. The kernel layer running inthe processor generates, based on the information, location data (thelocation data may specifically include touch point coordinates, atimestamp corresponding to the touch point coordinates, and the like)corresponding to the operation. The kernel layer uploads the collectedfinger location data to the framework layer. If the IMS in the frameworklayer determines that the operation is a preset gesture operation (forexample, dragging), the IMS reports the gesture to DragStarter in theSystemUI at the application layer. The DragStarter processes responselogic of the user drag gesture, determines a location (up, bottom, left,or right) for enabling a new split-screen window, and delivers aninstruction to the unified split-screen window control center to controlsplit-screen display. In this way, split-screen display can be triggeredpassively based on a user operation.

Specifically, an application developer of the first application mayspecify, by using a layout (Layout) configuration file or through APIinvocation, a view (View) to which a split-screen event is to be bound.When receiving the first operation and determining that the second taskneeds to be enabled, the mobile phone displays the view on the interfaceof the first task. The user may drag the view to a specified location(four locations are supported: left-LEFT, right-RIGHT, up-UP, andbottom-BOTTOM). The mobile phone forms a split-screen window (the seconddisplay window) in the specified location, and displays the view in thesplit-screen display window. Optionally, after forming the split-screenwindow in the specified location, the mobile phone may display thedisplay interface of the second task in the split-screen display windowonly after receiving an operation of tapping the view by the user.

A determining algorithm for determining, by the mobile phone, a locationat which screen splitting is to be enabled is as follows:

(1) When a coordinate location (x, y) of a dragged UI view exceeds asplit-screen response region (a dashed-line region shown in thepreceding figures), split-screen is triggered in a correspondingdirection.

(2) If both the horizontal direction and the vertical direction exceedthe split-screen response region, based on a last recorded coordinatepoint (x0, y0) and displacement dx=|x−x0|, dy=|y−y0| in a period oftime, whether a current finger movement direction tends to be thehorizontal direction or the vertical direction is determined bycomparing dx and dy. If dx>dy, it indicates that the finger moves moreobviously in the horizontal direction; and if x>x0, it indicates thatthe finger moves rightward, and right split-screen is triggered; or ifx<x0, left split-screen is triggered. If dx<dy, it indicates that thefinger moves more obviously in the vertical direction; and if y>y0, itindicates that the finger moves downward, and bottom split-screen istriggered; or if y<y0, up split-screen is triggered.

For example, as shown in FIG. 13(A) to FIG. 13(F), after the userperforms the first operation on a Taobao interface, the mobile phoneenables the split-screen mode in response to the first operation. Inthis case, a thumbnail is popped up on the Taobao interface, as shown inFIG. 13(A). In this case, the user may perform a drag operation on thethumbnail, for example, drag rightward as shown in FIG. 13(B), dragdownward as shown in FIG. 13(C), drag upward as shown in FIG. 13(D), ordrag leftward as shown in FIG. 13(E). The mobile phone determines alocation of the split-screen window based on a moving direction of theview. For example, as shown in FIG. 13(F), when the moving direction isdownward, the display is divided into two windows in an up-bottomarrangement, where the second display window for displaying the secondtask (WeChat) is located below, and the first display window fordisplaying the first task (Taobao) is located above. A location of asplit-screen display window in another drag manner is similar, anddetails are not described herein.

In a possible design, after the display displays the view, when the usertouches and holds the view with a single finger or two fingers, a copy(shadow) of the view that can be dragged by the user is generated. Inthis case, the user may perform an operation of dragging the copy of theview to a specified location. Further, an effect of displaying thesecond task in split screen is implemented. If the user taps the viewafter the view is displayed on the display, the mobile phone stillnormally opens a new page (that is, exits the interface of the firsttask, and displays the interface of the second task in full screen). Inthis way, after the user performs the first operation, the user mayselect, based on a requirement, whether to perform split-screen display.This can improve user experience.

In an alternative implementation, as shown in FIG. 14(A) to FIG. 14(F),an initial display location of the view may alternatively be anupper/lower/left/right edge location of the first display interface. Inthis way, shielding on main display content in the first displayinterface by the view can be further reduced.

In a possible design, as shown in FIG. 15(A) to FIG. 15(D), if themobile phone has entered the split-screen mode before the firstoperation, a display window on the entire display may be re-dividedbased on a drag operation of the user, and the display interface (inother words, a display interface in which a user input operation is lastreceived, that is, Taobao) of the first task and the display interfacecorresponding to the second task are respectively displayed in two newdisplay windows obtained through division. In this way, an effect offlexibly updating the split-screen display window based on a userrequirement can be implemented. This further improves user experience.Certainly, screen splitting may further be performed on an originaldisplay region of the first task (Taobao), and display of an originalsplit-screen window (home screen) remains unchanged.

In an optional implementation, an area of the view does not exceed aspecified threshold area, for example, does not exceed one-third orone-fifth of an area of the first display interface. In this way,shielding on content in the first display interface by the view can bereduced. This improves user experience.

In an optional implementation, the view may be displayed in asemi-transparent manner. In this way, shielding on main display contentin the first display interface by the view can be further reduced. Thisimproves a visual effect.

In the foregoing embodiments, the method provided in the embodiments ofthe present invention is described from a perspective of the electronicdevice (the mobile phone 100) used as an execution body. To implementfunctions in the method provided in the embodiments of the presentinvention, a terminal device may include a hardware structure and/or asoftware module, to implement the functions in a form of the hardwarestructure, the software module, or a combination of the hardwarestructure and the software module. Whether a specific function in theforegoing functions is performed by the hardware structure, the softwaremodule, or the combination of the hardware structure and the softwaremodule depends on specific applications and design constraints of thetechnical solutions.

Based on a same technical concept, an embodiment of the presentinvention further provides an electronic device 1600, configured toperform steps of the split-screen display method according to theforegoing embodiments of the present invention. As shown in FIG. 16, theelectronic device 1600 includes a display 1601; one or more processors1602; a memory 1603; a plurality of applications; and one or morecomputer programs. The one or more computer programs are stored in thememory, the one or more computer programs include instructions, and whenthe instructions are invoked and executed by the one or more processors,the electronic device is enabled to implement the split-screen displaymethod according to the embodiments of the present invention.

The processor 1602 may be a general-purpose processor, a digital signalprocessor (digital signal processor, DSP), an application-specificintegrated circuit (application specific integrated circuit, ASIC), afield programmable gate array (field programmable gate array, FPGA) oranother programmable logic device, a discrete gate or a transistor logicdevice, or a discrete hardware component. The processor may implement orperform the methods, steps, and logical block diagrams that aredisclosed in the embodiments of the present invention. Thegeneral-purpose processor may be a microprocessor, or the processor maybe any conventional processor or the like. The steps in the methodsdisclosed with reference to the embodiments of the present invention maybe directly performed by a hardware decoding processor, or may beperformed by using a combination of hardware and software modules in adecoding processor. The software module may be located in a maturestorage medium in the art, such as a random access memory (random accessmemory, RAM), a flash memory, a read-only memory (read-only memory,ROM), a programmable read-only memory, an electrically erasableprogrammable memory, or a register. The storage medium is located in thememory, and the processor reads instructions in the memory and completesthe steps in the foregoing methods in combination with hardware of theprocessor.

When the electronic device shown in FIG. 16 is the mobile phone 100, theprocessor 1601 may be the processor 110, the display 1601 may be thedisplay 194, and the memory 1603 may be the internal memory 121.

For related features of specific implementations of an apparatus, referto the foregoing method part. Details are not described herein again.

Based on a same technical concept, an embodiment of the presentinvention further provides an electronic device. The electronic deviceincludes modules/units for performing the foregoing split-screen displaymethod in the embodiments of the present invention. These modules/unitsmay be implemented by hardware, or may be implemented by hardwareexecuting corresponding software.

Based on a same technical concept, an embodiment of the presentinvention further provides a computer storage medium including computerinstructions. When the computer instructions are run on an electronicdevice, the electronic device is enabled to perform the split-screendisplay method according to the embodiments of the present invention.

Based on a same technical concept, an embodiment of the presentinvention further provides a program product. When the program productruns on a computer, the computer is enabled to perform the split-screendisplay method according to the embodiments of the present invention.

Based on a same technical concept, an embodiment of the presentinvention further provides a chip. The chip is coupled to a memory in anelectronic device, and is configured to invoke a computer program storedin the memory and perform the split-screen display method according tothe embodiments of the present invention. In the embodiments of thepresent invention, “coupling” means a direct combination or an indirectcombination of two components.

Based on a same technical concept, an embodiment of the presentinvention further provides a graphical user interface on an electronicdevice. The electronic device includes a display, one or more memories,and one or more processors. The one or more processors are configured toexecute one or more computer programs stored in the one or morememories. The graphical user interface includes the split-screen displaymethod according to the embodiments of the present invention that isperformed by the electronic device.

The embodiments of the present invention may be used separately, or maybe used in combination, to achieve different technical effects.

The foregoing embodiments are merely used to describe the technicalsolutions of the present invention in detail. However, descriptions ofthe foregoing embodiments are merely intended to help understand themethod according to the embodiments of the present invention, and shallnot be construed as a limitation on the embodiments of the presentinvention. Variations or replacements readily figured out by a personskilled in the art shall fall within the protection scope of theembodiments of the present invention.

According to the context, the term “when” used in the foregoingembodiments may be interpreted as a meaning of “if”, “after”, “inresponse to determining”, or “in response to detecting”. Similarly,according to the context, the phrase “when it is determined that” or “if(a stated condition or event) is detected” may be interpreted as ameaning of “if it is determined that”, “in response to determining”,“when (a stated condition or event) is detected”, or “in response todetecting (a stated condition or event)”.

All or some of the foregoing embodiments may be implemented by usingsoftware, hardware, firmware, or any combination thereof. When softwareis used to implement the embodiments, all or some of the embodiments maybe implemented in a form of a computer program product. The computerprogram product includes one or more computer instructions. When thecomputer program instructions are loaded and executed on a computer, theprocedures or the functions according to the embodiments of the presentinvention are all or partially generated. The computer may be ageneral-purpose computer, a dedicated computer, a computer network, oranother programmable apparatus. The computer instructions may be storedin a computer-readable storage medium or may be transmitted from acomputer-readable storage medium to another computer-readable storagemedium. For example, the computer instructions may be transmitted from awebsite, computer, server, or data center to another website, computer,server, or data center in a wired (for example, a coaxial cable, anoptical fiber, or a digital subscriber line) or wireless (for example,infrared, radio, or microwave) manner. The computer-readable storagemedium may be any usable medium accessible by a computer, or a datastorage device, such as a server or a data center, integrating one ormore usable media. The usable medium may be a magnetic medium (forexample, a floppy disk, a hard disk, or a magnetic tape), an opticalmedium (for example, a DVD), a semiconductor medium (for example, asolid-state drive), or the like.

For a purpose of explanation, the foregoing descriptions are describedwith reference to specific embodiments. However, the foregoing examplediscussion is not intended to be detailed, and is not intended to limitthe present invention to a disclosed precise form. According to theforegoing teaching content, many modification forms and variation formsare possible. Embodiments are selected and described to fully illustratethe principles of the present invention and practical application of theprinciples, so that other persons skilled in the art can fully use thepresent invention and various embodiments that have variousmodifications applicable to conceived specific usage.

What is claimed is:
 1. A split-screen display method, wherein the methodcomprises: displaying a display interface corresponding to a first taskon a display when a first application is run to execute the first task;receiving, on the display interface corresponding to the first task, afirst operation used to enable a second task; and enabling asplit-screen display mode in response to the first operation.
 2. Themethod according to claim 1, wherein the displaying the displayinterface corresponding to the first task on the display when the firstapplication is run to execute the first task comprises: displaying thedisplay interface corresponding to the first task on the display in fullscreen.
 3. The method according to claim 1, wherein the second task is atask in the first application; or the second task is a task in a secondapplication, and the second application is different from the firstapplication.
 4. The method according to claim 1, wherein the enablingthe split-screen display mode in response to the first operationcomprises: generating at least two display windows on the display,wherein the at least two display windows comprise a first display windowand a second display window; displaying the display interfacecorresponding to the first task in the first display window; anddisplaying a display interface corresponding to the second task in thesecond display window.
 5. The method according to claim 1, wherein theenabling the split-screen display mode in response to the firstoperation comprises: generating a view of a display interfacecorresponding to the second task, and displaying the view on the displayinterface corresponding to the first task; determining a location of asplit-screen display window based on a second operation for the view inresponse to the second operation; and displaying the split-screendisplay window at the location of the split-screen display window, anddisplaying the display interface corresponding to the second task in thesplit-screen display window.
 6. The method according to claim 5, whereinthe second operation comprises a first sub-operation, and the firstsub-operation is an operation of dragging the view or a copy of the viewto a preset location; the determining the location of the split-screendisplay window based on the second operation comprises: determining thepreset location to be the location of the split-screen display window;and the method further comprises: displaying the split-screen displaywindow at the location of the split-screen display window after thefirst sub-operation is received.
 7. The method according to claim 6,wherein the second operation further comprises a second sub-operationbefore the first sub-operation, and the second sub-operation is anoperation of touching and holding the view with a single finger ortouching and holding the view with two fingers.
 8. The method accordingto claim 6, wherein the second operation further comprises a thirdsub-operation after the first sub-operation, and the third sub-operationis an operation of tapping the view; and the method further comprises:displaying the display interface corresponding to the second task in thesplit-screen display window after the third sub-operation is received.9. An electronic device, comprising a display; one or more processors; amemory; a plurality of applications; and one or more computer programs,wherein the one or more computer programs are stored in the memory, theone or more computer programs comprise instructions, and when theinstructions are invoked and executed by the one or more processors, theelectronic device is enabled to perform the following steps: displayinga display interface corresponding to a first task on the display when afirst application is run to execute the first task; receiving, on thedisplay interface corresponding to the first task, a first operationused to enable a second task; and enabling a split-screen display modein response to the first operation.
 10. The electronic device accordingto claim 9, wherein when the instructions are invoked and executed bythe one or more processors, the electronic device is enabled to performthe following step: displaying the display interface corresponding tothe first task on the display in full screen.
 11. The electronic deviceaccording to claim 9, wherein the second task is a task in the firstapplication; or the second task is a task in a second application, andthe second application is different from the first application.
 12. Theelectronic device according to claim 9, wherein when the instructionsare invoked and executed by the one or more processors, the electronicdevice is enabled to perform the following steps: generating at leasttwo display windows on the display, wherein the at least two displaywindows comprise a first display window and a second display window;displaying the display interface corresponding to the first task in thefirst display window; and displaying a display interface correspondingto the second task in the second display window.
 13. The electronicdevice according to claim 9, wherein when the instructions are invokedand executed by the one or more processors, the electronic device isenabled to perform the following steps: generating a view of a displayinterface corresponding to the second task, and displaying the view onthe display interface corresponding to the first task; determining alocation of a split-screen display window based on a second operationfor the view in response to the second operation; and displaying thesplit-screen display window at the location of the split-screen displaywindow, and displaying the display interface corresponding to the secondtask in the split-screen display window.
 14. The electronic deviceaccording to claim 13, wherein the second operation comprises a firstsub-operation, and the first sub-operation is an operation of draggingthe view or a copy of the view to a preset location; when theinstructions are invoked and executed by the one or more processors, theelectronic device is enabled to perform the following step: determiningthe preset location to be the location of the split-screen displaywindow; and when the instructions are invoked and executed by the one ormore processors, the electronic device is further enabled to perform thefollowing step: displaying the split-screen display window at thelocation of the split-screen display window after the firstsub-operation is received.
 15. The electronic device according to claim14, wherein the second operation further comprises a secondsub-operation before the first sub-operation, and the secondsub-operation is an operation of touching and holding the view with asingle finger or touching and holding the view with two fingers.
 16. Theelectronic device according to claim 14, wherein the second operationfurther comprises a third sub-operation after the first sub-operation,and the third sub-operation is an operation of tapping the view; andwhen the instructions are invoked and executed by the one or moreprocessors, the electronic device is further enabled to perform thefollowing step: displaying the display interface corresponding to thesecond task in the split-screen display window after the thirdsub-operation is received. 17-19. (canceled)
 20. A computer storagemedium, comprising computer instructions, wherein when the computerinstructions are run on an electronic device, the electronic device isenabled to perform: displaying a display interface corresponding to afirst task on a display when a first application is run to execute thefirst task; receiving, on the display interface corresponding to thefirst task, a first operation used to enable a second task; and enablinga split-screen display mode in response to the first operation.
 21. Thecomputer storage medium according to claim 20, wherein the enabling asplit-screen display mode in response to the first operation, theelectronic device is enabled to perform: generating at least two displaywindows on the display, wherein the at least two display windowscomprise a first display window and a second display window; displayingthe display interface corresponding to the first task in the firstdisplay window; and displaying a display interface corresponding to thesecond task in the second display window.
 22. The computer storagemedium according to claim 20, wherein the enabling a split-screendisplay mode in response to the first operation, the electronic deviceis enabled to perform: generating a view of a display interfacecorresponding to the second task, and displaying the view on the displayinterface corresponding to the first task; determining a location of asplit-screen display window based on a second operation for the view inresponse to the second operation; and displaying the split-screendisplay window at the location of the split-screen display window, anddisplaying the display interface corresponding to the second task in thesplit-screen display window.